package com.bro.person.admin.dao.mapper;

import com.bro.person.base.dao.mapper.IBroBaseMapper;
import com.bro.person.admin.model.AdminResource;
import com.bro.person.admin.model.AdminResourceCriteria;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * AdminResource的 mapper
 *
 * @author jdd
 * @version 1.0
 * @date 2018-11-02 11:59:49
 */
public interface AdminResourceMapper extends IBroBaseMapper<AdminResource, AdminResourceCriteria, Integer> {

    /**
     * 通过userId 查询用户信息
     * @param userId
     * @param status
     * @return
     */
    List<AdminResource> queryResourcesByUserId(@Param("userId")Integer userId, @Param("status")Short status);
}